import request from '@/utils/request'

export function PanelGroupData() {
  return request({
    url: '/api/data/v1/count/host',
    method: 'get'
  })
}
export function HostGroup() {
  return request({
    url: '/api/data/v1/count/host/group',
    method: 'get'
  })
}

export function HostTypeCount() {
  return request({
    url: '/api/data/v1/count/host/type',
    method: 'get'
  })
}

export function HostBranchCount() {
  return request({
    url: '/api/data/v1/count/host/branch',
    method: 'get'
  })
}

export function Event() {
  return request({
    url: '/api/data/v1/count/event',
    method: 'get'
  })
}

export function AlarmCountData() {
  return request({
    url: '/api/data/v1/count/alarm',
    method: 'get'
  })
}
export function AlarmProcessTypeData() {
  return request({
    url: '/api/data/v1/count/alarm/process-type',
    method: 'get'
  })
}

export function alarmHour24() {
  return request({
    url: '/api/data/v1/count/alarm/24h',
    method: 'get'
  })
}

export function eventHour24FaultCount() {
  return request({
    url: '/api/data/v1/count/event/24h/fault-count',
    method: 'get'
  })
}
